# import random
# u = random.choice(['石头', '剪子', '布'])
# n = input('请在“石头”，“剪子”，“布”三选一：')
# if n == u:
#     print('平手'); print('我出的' + n); print('我出的' + u)
# elif (n == '石头' and u == '剪刀') or ( n == '剪刀' and u == '布' ) or (n == '布' and u == '石头'):
#     print('赢了'); print('我出的' + u); print('我出的 ' + n)
# else:
# #     print('输了');print('我出的' + u); print('我出的' + n)
#
# n = input('请在“石头”，“剪子”，“布”三选一：')
# if  n == '石头':
#     print('你赢了大美女')
# elif n == '剪刀':
#     print('美眉赢了呦！')
# else:
#     print('逢赌必赢哦！')
>>> at = (10, 20, 30, 'bob', 'alice', [1, 2, 3])
>>> at
(10, 20, 30, 'bob', 'alice', [1, 2, 3])
>>> len(at)
6
>>> list(at)
[10, 20, 30, 'bob', 'alice', [1, 2, 3]]
>>> 10 in at
True
>>> 23 in at
False
>>> at[2]
30
>>> at[1]
20
>>> at[3:5]
('bob', 'alice')
>>> at[-1]
[1, 2, 3]
>>> at[-1] = 100
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'tuple' object does not support item assignment











